import { LocalCache, LocalKey } from "@/utils/cache";
export type AppState = {
    appInfo: any,
    theme: string,
    version: string,
}

export const state: AppState = {
    appInfo: null,
    theme: '',
    version: LocalCache.get(LocalKey.VERSION) || '999.999.999',
};

export const getters = {
    appInfo: (state: AppState) => state.appInfo,
    theme: (state: AppState) => state.theme,
    version: (state: AppState) => state.version,
}
